
import React from "react"
// svg
import { ReactComponent as CircuitSvg } from '../../assets/svg/ziYiLi2.svg';
import {$homePageSvgComponentPropsInterface} from "../../interface";
import HomePage_SvgComponent from ".";

// 主页-自一里2svg组件

const HomePage_ZiYiLi2SvgComponent: React.FC<$homePageSvgComponentPropsInterface> = (props) => {
    const width = 1488
    const height = 1520
    const cardList = [
        {
            name: "高压母线-左",
            top: 78,
            left: 32,
            key: "",
        },
        {
            name: "变压器",
            top: 149,
            left: 542,
            key: "",
        },
        {
            name: "主供电源进线",
            top: 143,
            left: 670,
            key: "",
        },
        {
            name: "备用电源进线",
            top: 143,
            left: 807,
            key: "",
        },
        {
            name: "计量柜",
            top: 143,
            left: 977,
            key: "",
        },
        {
            name: "PT柜",
            top: 139,
            left: 1114,
            key: "",
            unit:"kV"
        },
        {
            name: "高压母线-右-上",
            top: 30,
            left: 1233,
            key: "",
        },
        {
            name: "高压母线-右-下",
            top: 166,
            left: 1233,
            key: "",
        },
        {
            name: "左洞入口加强照明1",
            top: 269,
            left: 104,
            key: "",
        },
        {
            name: "左洞入口加强照明2",
            top: 269,
            left: 222,
            key: "",
        },
        {
            name: "左洞过渡加强照明1",
            top: 269,
            left: 340,
            key: "",
        },
        {
            name: "左洞过渡加强照明2",
            top: 269,
            left: 458,
            key: "",
        },
        {
            name: "左洞出口加强照明1",
            top: 269,
            left: 576,
            key: "",
        },
        {
            name: "左洞出口加强照明2",
            top: 269,
            left: 694,
            key: "",
        },
        {
            name: "备用1-1",
            top: 269,
            left: 812,
            key: "",
        },
        {
            name: "备用2-1",
            top: 269,
            left: 930,
            key: "",
        },
        {
            name: "备用3-1",
            top: 269,
            left: 1048,
            key: "",
        },
        {
            name: "电容补偿+有源滤液",
            top: 269,
            left: 1166,
            key: "",
        },
        {
            name: "消防（备）",
            top: 490,
            left: 104,
            key: "",
        },
        {
            name: "备用1-2",
            top: 490,
            left: 222,
            key: "",
        },
        {
            name: "备用2-2",
            top: 490,
            left: 340,
            key: "",
        },
        {
            name: "备用3-2",
            top: 490,
            left: 458,
            key: "",
        },
        {
            name: "备用42",
            top: 490,
            left: 576,
            key: "",
        },
        {
            name: "备用5-2",
            top: 490,
            left: 694,
            key: "",
        },
        {
            name: "左线插座检修",
            top: 490,
            left: 812,
            key: "",
        },
        {
            name: "右线插座继续",
            top: 490,
            left: 930,
            key: "",
        },
        {
            name: "ATS PC级-左",
            top: 520,
            left: 1160,
            key: "",
        },
        {
            name: "ATS PC级-右",
            top: 520,
            left: 1337,
            key: "",
        },
        {
            name: "左洞基本照明1",
            top: 711,
            left: 104,
            key: "",
        },
        {
            name: "左洞基本照明2",
            top: 711,
            left: 222,
            key: "",
        },
        {
            name: "左洞基本照明3",
            top: 711,
            left: 340,
            key: "",
        },
        {
            name: "左洞基本照明4",
            top: 711,
            left: 458,
            key: "",
        },
        {
            name: "左洞基本照明5",
            top: 711,
            left: 576,
            key: "",
        },
        {
            name: "大桩号引道照明",
            top: 711,
            left: 694,
            key: "",
        },
        {
            name: "通风风机-2",
            top: 711,
            left: 812,
            key: "",
        },
        {
            name: "备用1-2",
            top: 711,
            left: 930,
            key: "",
        },
        {
            name: "备用2-2",
            top: 711,
            left: 1048,
            key: "",
        },
        {
            name: "通风风机-3",
            top: 930,
            left: 104,
            key: "",
        },
        {
            name: "抽烟风机1",
            top: 930,
            left: 222,
            key: "",
        },
        {
            name: "抽烟风机2",
            top: 930,
            left: 340,
            key: "",
        },
        {
            name: "消防（主）",
            top: 930,
            left: 458,
            key: "",
        },
        {
            name: "UPS",
            top: 930,
            left: 576,
            key: "",
        },
        {
            name: "变电所用电",
            top: 930,
            left: 694,
            key: "",
        },
        {
            name: "备用1-3",
            top: 930,
            left: 812,
            key: "",
        },
        {
            name: "备用2-3",
            top: 930,
            left: 930,
            key: "",
        },
        {
            name: "左洞应急照明1",
            top: 1307,
            left: 124,
            key: "",
        },
        {
            name: "左洞应急照明2",
            top: 1307,
            left: 242,
            key: "",
        },
        {
            name: "左洞应急照明3",
            top: 1307,
            left: 360,
            key: "",
        },
        {
            name: "右洞应急照明1",
            top: 1307,
            left: 478,
            key: "",
        },
        {
            name: "右洞应急照明2",
            top: 1307,
            left: 596,
            key: "",
        },
        {
            name: "右洞应急照明3",
            top: 1307,
            left: 714,
            key: "",
        },
        {
            name: "右洞应急照明4",
            top: 1307,
            left: 832,
            key: "",
        },
        {
            name: "备用1-1",
            top: 1307,
            left: 950,
            key: "",
        },
        {
            name: "备用2-1",
            top: 1307,
            left: 1068,
            key: "",
        },
        {
            name: "车行横洞配电箱",
            top: 1307,
            left: 1186,
            key: "",
        },
    ]
    const rowGeneratrixList =["高压母线-右-上","高压母线-右-下"]
    const row14List =["高压母线-左"]

    const dialogBoxList =[
        {
            name: "变压器",
            top: 148,
            left: 183,
            key: "",
            direction: "Up"
        },
        {
            name: "主供电源进线",
            top: 70,
            left: 656,
            key: "",
            direction: "Down"
        },
        {
            name: "备用电源进线",
            top: 148,
            left: 786,
            key: "",
            direction: "Up"
        },
        {
            name: "左洞入口加强照明1",
            top: 301,
            left: 87,
            key: "",
            direction: "Down"
        },
        {
            name: "左洞入口加强照明2",
            top: 378,
            left: 203,
            key: "",
            direction: "Up"
        },
        {
            name: "左洞过渡加强照明1",
            top: 301,
            left: 323,
            key: "",
            direction: "Down"
        },
        {
            name: "左洞过渡加强照明2",
            top: 378,
            left: 440,
            key: "",
            direction: "Up"
        },
        {
            name: "左洞出口加强照明1",
            top: 301,
            left: 559,
            key: "",
            direction: "Down"
        },
        {
            name: "左洞出口加强照明2",
            top: 378,
            left: 676,
            key: "",
            direction: "Up"
        },
        {
            name: "备用1-1",
            top: 301,
            left: 795,
            key: "",
            direction: "Down"
        },
        {
            name: "备用2-1",
            top: 378,
            left: 913,
            key: "",
            direction: "Up"
        },
        {
            name: "备用3-1",
            top: 301,
            left: 1031,
            key: "",
            direction: "Down"
        },
        {
            name: "电容补偿+有源滤液",
            top: 378,
            left: 1148,
            key: "",
            direction: "Up"
        },
        {
            name: "消防（备）",
            top: 522,
            left: 87,
            key: "",
            direction: "Down"
        },
        {
            name: "备用1-2",
            top: 599,
            left: 203,
            key: "",
            direction: "Up"
        },
        {
            name: "备用2-2",
            top: 522,
            left: 323,
            key: "",
            direction: "Down"
        },
        {
            name: "备用3-2",
            top: 599,
            left: 440,
            key: "",
            direction: "Up"
        },
        {
            name: "备用42",
            top: 522,
            left: 559,
            key: "",
            direction: "Down"
        },
        {
            name: "备用5-2",
            top: 599,
            left: 676,
            key: "",
            direction: "Up"
        },
        {
            name: "左线插座检修",
            top: 522,
            left: 795,
            key: "",
            direction: "Down"
        },
        {
            name: "右线插座继续",
            top: 599,
            left: 913,
            key: "",
            direction: "Up"
        },
        {
            name: "ATS PC级-左",
            top: 542,
            left: 1205,
            key: "",
            direction: "Down"
        },
        {
            name: "ATS PC级-右",
            top: 618,
            left: 1324,
            key: "",
            direction: "Up"
        },
        {
            name: "左洞基本照明1",
            top: 743,
            left: 87,
            key: "",
            direction: "Down"
        },
        {
            name: "左洞基本照明2",
            top: 820,
            left: 203,
            key: "",
            direction: "Up"
        },
        {
            name: "左洞基本照明3",
            top: 743,
            left: 323,
            key: "",
            direction: "Down"
        },
        {
            name: "左洞基本照明4",
            top: 820,
            left: 440,
            key: "",
            direction: "Up"
        },
        {
            name: "左洞基本照明5",
            top: 743,
            left: 559,
            key: "",
            direction: "Down"
        },
        {
            name: "大桩号引道照明",
            top: 820,
            left: 676,
            key: "",
            direction: "Up"
        },
        {
            name: "通风风机-2",
            top: 743,
            left: 795,
            key: "",
            direction: "Down"
        },
        {
            name: "备用1-2",
            top: 820,
            left: 913,
            key: "",
            direction: "Up"
        },
        {
            name: "备用2-2",
            top: 743,
            left: 1031,
            key: "",
            direction: "Down"
        },
        {
            name: "通风风机-3",
            top: 962,
            left: 87,
            key: "",
            direction: "Down"
        },
        {
            name: "抽烟风机1",
            top: 1039,
            left: 203,
            key: "",
            direction: "Up"
        },
        {
            name: "抽烟风机2",
            top: 962,
            left: 323,
            key: "",
            direction: "Down"
        },
        {
            name: "消防（主）",
            top: 1039,
            left: 440,
            key: "",
            direction: "Up"
        },
        {
            name: "UPS",
            top: 962,
            left: 559,
            key: "",
            direction: "Down"
        },
        {
            name: "变电所用电",
            top: 1039,
            left: 676,
            key: "",
            direction: "Up"
        },
        {
            name: "备用1-3",
            top: 962,
            left: 795,
            key: "",
            direction: "Down"
        },
        {
            name: "备用2-3",
            top: 1039,
            left: 913,
            key: "",
            direction: "Up"
        },
        {
            name: "左洞应急照明1",
            top: 1340,
            left: 114,
            key: "",
            direction: "Down"
        },
        {
            name: "左洞应急照明2",
            top: 1417,
            left: 229,
            key: "",
            direction: "Up"
        },
        {
            name: "左洞应急照明3",
            top: 1340,
            left: 348,
            key: "",
            direction: "Down"
        },
        {
            name: "右洞应急照明1",
            top: 1417,
            left: 465,
            key: "",
            direction: "Up"
        },
        {
            name: "右洞应急照明2",
            top: 1340,
            left: 584,
            key: "",
            direction: "Down"
        },
        {
            name: "右洞应急照明3",
            top: 1417,
            left: 700,
            key: "",
            direction: "Up"
        },
        {
            name: "右洞应急照明4",
            top: 1340,
            left: 819,
            key: "",
            direction: "Down"
        },
        {
            name: "备用1-1",
            top: 1417,
            left: 936,
            key: "",
            direction: "Up"
        },
        {
            name: "备用2-1",
            top: 1340,
            left: 1056,
            key: "",
            direction: "Down"
        },
        {
            name: "车行横洞配电箱",
            top: 1417,
            left: 1173,
            key: "",
            direction: "Up"
        },
    ]
    return (
        <HomePage_SvgComponent initWidth={width} initHeight={height} pageName={props.pageName} scaleValue={props.scaleValue} isSwitch={props.isSwitch} Svg={CircuitSvg} cardList={cardList} rowGeneratrixList={rowGeneratrixList} row14List={row14List} initDialogBoxList = {dialogBoxList} sourceList={props.sourceList}/>
    )
}

export default HomePage_ZiYiLi2SvgComponent
